package cn.iocoder.yudao.module.ent.document;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * 号码归属地
 */
@Data
@Document(indexName = "node_location")
public class NodeLocation {

    /**
     * 区号
     */
    @Field(name = "area_code", type = FieldType.Keyword)
    private String areaCode;

    /**
     * 城市
     */
    @Field(name = "city", type = FieldType.Keyword)
    private String city;

    /**
     * 代码
     */
    @Field(name = "code", type = FieldType.Keyword)
    private String code;

    /**
     * 服务商
     */
    @Field(name = "facilitator", type = FieldType.Keyword)
    private String facilitator;

    /**
     * 号段
     */
    @Field(name = "number", type = FieldType.Keyword)
    private String number;

    /**
     * 邮编
     */
    @Field(name = "postcode", type = FieldType.Keyword)
    private String postcode;

    /**
     * 省区
     */
    @Field(name = "provinces", type = FieldType.Keyword)
    private String provinces;

    /**
     * 区划代码
     */
    @Field(name = "zoning_code", type = FieldType.Keyword)
    private String zoningCode;

}
